/*
 * @Description: 气象监测
 */
import request from "@/api/index";
export default {
  
  /**
   * @description: 物联监测导出 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  queryHistoryExport(params) {
    const url = "/iot/dataCollect/exprotHistory"
    return request.fileGet(url, params)
  },
  /**
   * @description: 获取气象数据项最新数据
   * @return {Array}
   */
  queryNewByEquipmentId(params) {
    const url = "/iot/dataCollect/queryNewByEquipmentId"
    return request.get(url,{
      ...params
    })
  },
  /**
   * @description: 获取折线图数据
   * @return {Array}
   */
  queryHistoryByList(params) {
    const url = "/iot/dataCollect/queryHistoryByList"
    return request.get(url,{
      ...params
    })
  },
  /**
   * @description: 获取折线图数据
   * @return {Array}
   */
  queryHistoryByListAndInterval(params) {
    const url = "/iot/dataCollect/queryHistoryByListAndInterval"
    return request.get(url,{
      ...params
    })
  }
}
